home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
rwvector.lha
/
RWVector2.1
/
src
/
testcos.out
< prev
next >
Wrap
Text File
|
1989-08-18
|
1KB
|
44 lines
Testing DoubleCosineServer (Double Precision Cosine Server)
**************************************
a2cos (one half of a two period cosine wave, plus 1.0):
2.00000 1.86603 1.50000 1.00000 0.50000
0.13397 0.00000 0.13397 0.50000 1.00000
1.50000 1.86603 2.00000
a2sin (one half of a two period sine wave):
0.50000 0.86603 1.00000 0.86603 0.50000
0.00000 -0.50000 -0.86603 -1.00000 -0.86603
-0.50000
**************************************
Checking cosine transform.
Transform of a2cos:
1.00000 0.00000 0.50000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000
Checking Parseval's theorem for cosine transform.
Original variance: 0.5
Spectral variance: 0.5
Checking Nyquist for cosine transform.
Original sequence:
1.00000 -1.00000 1.00000 -1.00000 1.00000
-1.00000 1.00000 -1.00000 1.00000 -1.00000
1.00000 -1.00000 1.00000
Its transform:
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 1.00000
**************************************
Checking sine transform.
Transform of a2sin:
0.00000 0.50000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000 0.00000
0.00000
Checking Parseval's theorem for sine transform.
Original variance: 0.5
Spectral variance: 0.5